/******************************************************************************
 * @File name   :      TempOrganizationUser.java
 *
 * @Author      :      <Jianxi Wu>
 *
 * @Date        :      2011-4-6
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2011-4-6 上午08:54:41        <Jianxi Wu>     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.framework.dm.employeemgnt.domain;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 *
 */
@Entity
@Table(name = "TR_TMP_ORG_USER")
@AttributeOverrides({
        @AttributeOverride(name = "createDate", column = @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "DATE DEFAULT SYSDATE")),
        @AttributeOverride(name = "lastUpdateDate", column = @Column(name = "LAST_UPDATE_DATE", nullable = false, columnDefinition = "DATE DEFAULT SYSDATE")),
        @AttributeOverride(name = "lastUpdateBy", column = @Column(name = "LAST_UPDATE_BY", nullable = false, columnDefinition = "number(18) default 0")),
        @AttributeOverride(name = "createBy", column = @Column(name = "CREATE_BY", nullable = false, columnDefinition = "number(18) default 0")) })
public class TempOrganizationUser extends BaseDomain {
    /**
     * 
     */
    private static final long serialVersionUID = -4063646162416517166L;
    private long organizationId;
    private long userId;

    /**
     * @Date : 2011-4-6
     * 
     * @return the id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    /**
     * @Date : 2011-4-6
     * 
     * @param id
     *            the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @Date : 2011-4-6
     * 
     * @return the organizationId
     */
    @Column(name = "organization_id", nullable = false)
    public long getOrganizationId() {
        return organizationId;
    }

    /**
     * @Date : 2011-4-6
     * 
     * @param organizationId
     *            the organizationId to set
     */
    public void setOrganizationId(long organizationId) {
        this.organizationId = organizationId;
    }

    /**
     * @Date : 2011-4-6
     * 
     * @return the userId
     */
    @Column(name = "user_id", nullable = false)
    public long getUserId() {
        return userId;
    }

    /**
     * @Date : 2011-4-6
     * 
     * @param userId
     *            the userId to set
     */
    public void setUserId(long userId) {
        this.userId = userId;
    }

}
